from django.db import models


class Parse(models.Model):
    """解析模型类"""
    content = models.TextField('内容')
    likes_num = models.IntegerField('点赞数', default=0)
    user_id = models.IntegerField('用户ID')
    note_id = models.IntegerField('笔记ID')
    create_time = models.DateTimeField('发布时间', auto_now_add=True)

    class Meta:
        db_table = 'parse'
